module.exports = {
  value: {
    type: [Array],
    default: '',
    name: '输入值',
    filedType: 'value'
  },

  placeholder: {
    type: String,
    default: '请输入搜索内容',
    name: '占位文本',
    filedType: 'string'
  },

  targetorder: {
    type: String,
    default: 'original',
    name: '排序策略',
    filedType: 'select',
    options: [
      {
        name: 'original',
        value: 'original'
      },
      {
        name: 'push',
        value: 'push'
      },
      {
        name: 'unshift',
        value: 'unshift'
      }
    ]
  },

  filterable: {
    type: Boolean,
    default: false,
    name: '启用搜索',
    filedType: 'switch'
  },

  useFormats: {
    type: Boolean,
    default: false,
    name: '自定义勾选状态文案',
    filedType: 'switch'
  },

  formatsFn: {
    type: Function,
    default: '',
    name: '列表顶部勾选状态文案',
    filedType: 'function',
    vif: {
      key: 'useFormats',
      value: true
    }
  },

  color: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color',
    vif: {
      key: 'filterable',
      value: true
    }
  },

  bgColor: {
    type: String,
    default: '#ffffff',
    name: '背景色',
    filedType: 'color',
    vif: {
      key: 'filterable',
      value: true
    }
  },

  borderColor: {
    type: String,
    default: '#e4e7ed',
    name: '边框色',
    filedType: 'color',
    vif: {
      key: 'filterable',
      value: true
    }
  },

  focusBorderColor: {
    type: String,
    default: '#409EFF',
    name: '聚焦边框色',
    filedType: 'color',
    vif: {
      key: 'filterable',
      value: true
    }
  },

  data: {
    type: Array,
    default () {
      return [{
        key: 0,
        label: '备选项 0',
        disabled: false
      }, {
        key: 1,
        label: '备选项 1',
        disabled: false
      }, {
        key: 2,
        label: '备选项 2',
        disabled: false
      }, {
        key: 3,
        label: '备选项 3',
        disabled: false
      }]
    },
    name: '数据源',
    filedType: 'api'
  },
  renderFn: {
    type: Function,
    default: '',
    name: '自定义数据项渲染',
    filedType: 'function'
  },
  titlesFn: {
    type: Function,
    default: '',
    name: '自定义列表标题',
    filedType: 'function'
  },
  buttontextsFn: {
    type: Function,
    default: '',
    name: '自定义按钮文案',
    filedType: 'function'
  },
  filterFn: {
    type: Function,
    default: '',
    name: '自定义搜索方法',
    filedType: 'function',
    vif: {
      key: 'useFormats',
      value: true
    }
  },
}
